# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mxml
pkgver=3.1
pkgrel=0
pkgdesc="Small XML library that you can use to read and write XML files"
url="https://www.msweet.org/mxml/"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/michaelrsweet/mxml/archive/v$pkgver.tar.gz"

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make testmxml
}

package() {
	make BUILDROOT="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="8f8923b394093db5c471c52c17185916bc3c91f66c97de66919bfef2a09f271879a52f285e5fc4ded03484a3f83ba8fdb588d985b06e0c25ee001f1a80ffa586  mxml-3.1.tar.gz"
